package com.antd.admin.server.service;

import com.antd.admin.api.entity.SysDict;
import com.antd.admin.api.vo.SysDictTreeVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @author 子丶沫
 * @since 2021-06-09
 */
public interface ISysDictService extends IService<SysDict> {
    /**
     * 构建字典树
     * @param dictName
     * @return
     */
    List<SysDictTreeVo> buildDictTree(String dictName);

    /**
     * 删除字典
     * @param id
     * @return
     */
    Boolean deleteDict(Long id);
}
